package com.zc.servicedemo;

import android.content.Context;
import android.os.PowerManager;

/**
 * @permission 	
 * 		<uses-permission android:name="android.permission.WAKE_LOCK" />
 * 		<uses-permission android:name="android.permission.DEVICE_POWER" />
 * @author Zc0727
 */
public class WakeUtils {
	
	public static void TestPower(Context context) {
		PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
		PowerManager.WakeLock wake = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "zc");
		wake.acquire();
		
		wake.release();
	}
}
